<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 10171225
  Date: 2016/3/4
  Time: 9:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>查看评论的文章</title>
</head>
<body>
<div>
    <p>已发布文章列表：</p>
    <table>
        <c:forEach items="${articles}" var="article" varStatus="vs">
            <tr>
                <td><c:out value="${vs.index + 1}"/></td>
                <td><a href="article/show?articleId=${article.id}"><c:out value="${article.title}"/></a></td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
